package ch03.staticProxy;

/**
 * @author Jane
 * @date 2024-03-25 15:04
 */

public class Test {
    public static void main(String[] args) {
       /* Buyer buyer =new Buyer();
        buyer.look();
        String msg = buyer.buyHouse();
        System.out.println(msg);
        buyer.tax();*/

        Buyer buyer =new Buyer();
        BuyerProxy proxy = new BuyerProxy(buyer);
        //proxy.setBuyer(buyer);
        proxy.pay();


    }
}
